<?php
@session_start();
require_once("../connect_db.php");

$sqlTemp="select * from meeting,car,course,orders where meeting.order_id=orders.order_id";
$sqlTemp.=" and course.course_id=orders.course_id  and meeting.car_id=car.car_id  and meet_status='N' and  meet_id='".$_GET["temp"]."'";
$queryTemp=mysql_query($sqlTemp);
$resultTemp=mysql_fetch_array($queryTemp);
?>
<style>

</style>
<form method="post"  name="frmreg" id="frmreg">



<div class="row">
	<div class="col-md-12">
		<div class="panel panel-danger" >
		 
		  <div class="panel-body">
			  <div class="form-group">
				<label for="inputname1" class="col-sm-5 control-label">ชื่อคอร์ส</label> 
				<div class="col-sm-7">
				  <input type="text" class="form-control" id="course_name" name="course_name" 
				  value="<?php  echo $resultTemp["course_name"]?>" disabled />
				 
				</div>
			  </div>
			
			
				
					<div class="form-group">
				<label for="inputcolor" class="col-sm-5 control-label">รถยนต์</label>
		<div class="col-sm-7">
					 <input type="text" style="width:200px;" class="form-control" id="car" 
					value="<?php  echo $resultTemp["car_brand"]." ".$resultTemp["car_model"]?>"
				      name="car" placeholder="" disabled>
				</div>
				</div>
				
				
				<div class="form-group">
				<label for="inputcolor" class="col-sm-5 control-label">วันที่เรียน</label>
		<div class="col-sm-7">
				  <input type="text" style="width:100px;" class="form-control" id="meet_date" 
					value="<?php  echo $resultTemp["meet_datetime"]?>"
				      name="meet_date" placeholder="" disabled>
				
				</div>
				</div>
				<div class="form-group">
				<label for="inputcolor" class="col-sm-5 control-label">จำนวนเวลาเรียน(ชม.)</label>
		<div class="col-sm-7">
				  <input type="text" style="width:100px;" class="form-control" id="course_hour" 
					value="<?php  echo $resultTemp["meet_hour"]?>"
				      name="course_hour" placeholder="" disabled>
				
				</div>
				</div>
				
				<div class="form-group">
				<label for="inputcolor" class="col-sm-5 control-label">ไมล์เริ่มต้น</label>
		<div class="col-sm-7">
				  <input type="text" style="width:100px;" class="form-control" id="meet_mile_start" 
					value=""
				      name="meet_mile_start" placeholder="" >
				
				</div>
				</div>
				
					
				<div class="form-group">
				<label for="inputcolor" class="col-sm-5 control-label">ไมล์สิ้นสุด</label>
		<div class="col-sm-7">
				  <input type="text" style="width:100px;" class="form-control" id="meet_mile_stop" 
					value=""
				      name="meet_mile_stop" placeholder="" >
				
				</div>
				</div>
				
					<div class="form-group">
				<label for="inputcolor" class="col-sm-5 control-label">หมายเหตุ(ถ้ามี)</label>
		<div class="col-sm-7">
				 <textarea name="meet_remark" id="meet_remark" rows="3" cols="30" class="form-control"></textarea>
				</div>
				</div>
				
				
				
		                
			  <div class="form-group">
				<div class="col-sm-offset-5 col-sm-7"><br>
                <span class="style30" id="displayAJAX"></span>
				<input type="hidden" name="temp" id="temp" 
				<?php echo "value='".$resultTemp["meet_id"]."'"; 
				?>   />
                <input type="button" class="btn btn-success" name="button" id="button" 
				value="บันทึกการสอน" 
				 onClick='JavaScript:if(window.confirm("ยินยันการบันทึกการสอน")) {meet_save();}' />
 
				<button type="button" class="btn btn-danger" onClick="if(window.confirm('ต้องการยกเลิกกรุณายืนยัน')) {
				$('#h3title').html('ตารางสอน');
				$('#mainscreen').load('teacher/calendar_table.php');}
				
				">ยกเลิก</button>
				</div>
				<div class="col-sm-offset-7 col-sm-4">
				  
				</div>
				
			  </div>
			 
			
		  </div>
		</div>
	</div>

</form>
<script>

